﻿#pragma once

#include "DigOutZombie.h"
#include "../../MirDatabase/MonsterInfo.h"
#include "../PlayerObject.h"
#include "../../../Shared/Enums.h"
#include "../MonsterObject.h"
#include <vector>
#include <any>

using namespace Server::MirDatabase;
using namespace Server::MirEnvir;
namespace S = ServerPackets;

namespace Server::MirObjects::Monsters
{
    class Armadillo : public DigOutZombie
    {
    protected:
        bool _runAway = false;

        Armadillo(MonsterInfo *info);

    public:
        int Attacked(PlayerObject *attacker, int damage, DefenceType type = DefenceType::ACAgility, bool damageWeapon = true) override;

        int Attacked(MonsterObject *attacker, int damage, DefenceType type = DefenceType::ACAgility) override;

    protected:
        void Attack() override;

        void Retreat();

        void CompleteRangeAttack(std::vector<std::any> &data) override;

        void ProcessTarget() override;
    };
}
